package com.weds.frame.auth.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.List;

/**
 * Description:
 * Author: LiuWenQing
 * Datetime: 2023/3/31 10:01
 */
@ApiModel
public class ScRoleUser {
    private Integer id;
    @ApiModelProperty(value = "角色编号",required=true)
    private String roleNo;
    @ApiModelProperty(value = "用户id",required=true)
    private Integer userId;
    @ApiModelProperty(value = "角色名称",required=true)
    private String roleName;
    @ApiModelProperty(value = "角色操作信息(暂不使用)",required=true)
    private List<ScBusinessOpt> optInfo;
    @ApiModelProperty(value = "角色编号字符串",required=true)
    private String roleNos;
    @ApiModelProperty(value = "用户状态",required=true)
    private Integer userState;
    @ApiModelProperty(value = "应用编号",required=true)
    private String serverModule;

    public String getServerModule() {
        return serverModule;
    }

    public void setServerModule(String serverModule) {
        this.serverModule = serverModule;
    }

    public ScRoleUser() {
    }

    //消息接受人信息构造
    public ScRoleUser(String roleNo, Integer userId) {
        this.roleNo = roleNo;
        this.userId = userId;
    }

    public String getRoleNos() {
        return roleNos;
    }

    public void setRoleNos(String roleNos) {
        this.roleNos = roleNos;
    }

    public Integer getUserState() {
        return userState;
    }

    public void setUserState(Integer userState) {
        this.userState = userState;
    }

    public List<ScBusinessOpt> getOptInfo() {
        return optInfo;
    }

    public void setOptInfo(List<ScBusinessOpt> optInfo) {
        this.optInfo = optInfo;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getRoleNo() {
        return roleNo;
    }

    public void setRoleNo(String roleNo) {
        this.roleNo = roleNo == null ? null : roleNo.trim();
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName == null ? null : roleName.trim();
    }
}
